/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucmconfchecker.pActivationTrace;

import java.util.Date;
import ucmconfchecker.pArchitecture.Responsibility;
import ucmconfchecker.pExecutionTrace.ExecutionTrace;

/**
 *
 * @author Administrador
 */
public class ArchEvent {
    
    private Responsibility responsibility;
    private Date begin;
    private Date end;
    private ExecutionTrace respTrace; 
    
    public ArchEvent(Responsibility responsibility, Date begin, Date end, ExecutionTrace respTrace) {
        this.responsibility=responsibility;
        this.begin=begin;
        this.end=end;
        this.respTrace=respTrace;
    }
    
    @Override
    public String toString(){
        return ""+responsibility + "\t("+ begin + "\t" + end +")\tMethodCalls: "+respTrace.size();
    }
    public ExecutionTrace getRespTrace(){
        return respTrace;
    }
    public Responsibility getResponsibility(){
        return responsibility;
    }
    public Date getBegin(){
        return begin;
    }
    public Date getEnd(){
        return end;
    }
}
